<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrderEdit.aspx.cs" Inherits="OrderEdit" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.v9.2" Namespace="DevExpress.Web.ASPxPager"
    TagPrefix="dxwp" %>
<%@ Register Assembly="DevExpress.Web.v9.2" Namespace="DevExpress.Web.ASPxTabControl"
    TagPrefix="dxtc" %>
<%@ Register Assembly="DevExpress.Web.v9.2" Namespace="DevExpress.Web.ASPxClasses"
    TagPrefix="dxw" %>
<%@ Register Assembly="DevExpress.Web.v9.2" Namespace="DevExpress.Web.ASPxPopupControl"
    TagPrefix="dxpc" %>
<%@ Register Assembly="DevExpress.Web.v9.2" Namespace="DevExpress.Web.ASPxRoundPanel"
    TagPrefix="dxrp" %>
<%@ Register Assembly="DevExpress.Web.v9.2" Namespace="DevExpress.Web.ASPxPanel"
    TagPrefix="dxp" %>
<%@ Register Assembly="DevExpress.Web.v9.2" Namespace="DevExpress.Web.ASPxHiddenField" TagPrefix="dxhf" %>
<%@ Register TagPrefix="wilson" Namespace="Wilson.ORMapper.Web" Assembly="WilsonORMDataSource" %>
<%@ Register Assembly="DevExpress.Web.v9.2" Namespace="DevExpress.Web.ASPxHiddenField"
    TagPrefix="dxhf" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.2.Export, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView.Export" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxDataView" TagPrefix="dxdv" %>
<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dxcp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Job Order</title>
    <link href="/Style/StyleSheet.css" rel="stylesheet" type="text/css" />
    <style>
.dxbButton {   	font-size: 11px; }
</style>
</head>
<body onload="javascript:LoadMap();">
    <form id="form1" runat="server">

    <script type="text/javascript">
        function ShowEdit() {
            window.open("../Edit/Job.aspx?OrderNo=" + txt_Sn.GetText(), "name1", "width=1020,height=600,toolbar=no,scrollbars=no,menubar=no");
        }
        var clientId = null;
        var clientName = null;
        var clientAdr = null;
        var clientContact = null;
        function PutValue(s, name) {
            if (clientId != null) {
                clientId.SetText(s);
                if (clientName != null) {
                    clientName.SetText(name);
                }
                popubCtr.Hide();
                popubCtr.SetContentUrl('about:blank');
            }
        }
        function PutValue(s, name,address,contact, lat, lon) {
            if (clientId != null) {
                clientId.SetText(s);
                if (clientName != null) {
                    clientName.SetText(name);
                }
                if (clientAdr != null)
                    clientAdr.SetText(address);
                if (clientContact != null)
                    clientContact.SetText(contact);
                popubCtr.Hide();
                popubCtr.SetContentUrl('about:blank');
		document.getElementById("mapframe").contentWindow.SetMap(lat,lon,14);

            }
}

function LoadMap() {
    var la = document.getElementById("lati").innerHTML;
    var lo = document.getElementById("longi").innerHTML;
    if(la != "")
        document.getElementById("mapframe").contentWindow.SetMap(la,lo, 14);
}

        function PopupCust(txtId, txtName,txtAdr,txtContact) {
            clientId = txtId;
            clientName = txtName;
            clientAdr = txtAdr;
            clientContact = txtContact;
            popubCtr.SetContentUrl('/Modules/SelectPage/CustomerPick.aspx');
            popubCtr.SetHeaderText('Customer');
            popubCtr.Show();
        }

        function PopupVehicle(N) {
            parent.PopupItem('/Pages/Sales/EditPage/VehicleEdit.aspx?no=' + N+'&sn=' + txt_OrderNo.GetText(), 'Service Order / Vehicle', 880, 480);
            //popubCtr.SetHeaderText('Service Order / Vehicle');
             //popubCtr.SetContentUrl('/Pages/Sales/EditPage/VehicleEdit.aspx?no=' + N+'&sn=' + txt_OrderNo.GetText());
             //popubCtr.Show();
        }

        function PopupUploadPhoto() {
            popubCtr.SetHeaderText('Upload Documents');
            popubCtr.SetContentUrl('../Upload.aspx?Sn=' + txt_Sn.GetText());
            popubCtr.Show();
        }
        function PopupUploadPhotoServer() {
            popubCtr1.SetHeaderText('Upload Documents');
            popubCtr1.SetContentUrl('/Pages/UploadFromServer.aspx?sn=' + txt_OrderNo.GetText());
            popubCtr1.Show();
        }
        function AfterUploadPhoto() {
            popubCtr.Hide();
            popubCtr.SetContentUrl('about:blank');
        }


        var grid = null;
        function AddBill(gridId) {
            grid = gridId;
            popubCtr1.SetHeaderText('Invoice');
            popubCtr1.SetContentUrl('/Modules/Account/EditPage/InvoiceEdit.aspx?InvN=0&sn=' + txt_OrderNo.GetText());
            popubCtr1.Show();
        }
        function ShowBill(gridId, no) {
            grid = gridId;
            popubCtr1.SetHeaderText('Invoice');
            popubCtr1.SetContentUrl('/Modules/Account/EditPage/InvoiceEdit.aspx?InvN=' + no + '&sn=' + txt_OrderNo.GetText());
            popubCtr1.Show();
        }
        function PrintEstimate() {
            window.open("/Reports/printview.aspx?doc=51&no=" + txt_OrderNo.GetText());
        }
        


        function OnCallback(v) {
            alert(v);
        }
        ////////////////for dropdown list
        function RowClickHandler(s, e) {
            SetLookupKeyValue(e.visibleIndex);
            de_Cust.HideDropDown();
        }
        function SetLookupKeyValue(rowIndex) {
            de_Cust.SetText(gridPopCont.cpKeyValues[rowIndex]);
            txt_CustName.SetText(gridPopCont.cpName[rowIndex]);
            txtAddress.SetText(gridPopCont.cpAddress[rowIndex]);
            txt_CustContact.SetText(gridPopCont.cpContact[rowIndex]);
        }

        /////////////////////////////////////////////////////////////////////////////////////////////////
  </script>

    <div>
         <asp:SqlDataSource ID="dsPickSource" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"
         SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1003 order by ddItemSort"  />
         <asp:SqlDataSource ID="dsPickServiceType" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"
         SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1009 order by ddItemSort"  />
         <asp:SqlDataSource ID="dsPickOrderStatus" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"
         SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1010 order by ddItemSort"  />
         <asp:SqlDataSource ID="dsPickTech" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"
         SelectCommand="select firstname as Code from [BoEmployee] where EmployeeGroupID=119 order by firstname"  />
         <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"
         SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1003 order by ddItemSort"  />


         <wilson:DataSource ID="dsCust" runat="server" ObjectSpace="Touchmax.Manager.ORManager"
                TypeName="Touchmax.BoClient" KeyMember="CustId" FilterExpression="1=1" />
        <wilson:DataSource ID="dsJobOrder" runat="server" ObjectSpace="Touchmax.Manager.ORManager"
            TypeName="Touchmax.OpOrder" KeyMember="Oid" FilterExpression="1=0" />
        <wilson:DataSource ID="dsVehicle" runat="server" ObjectSpace="Touchmax.Manager.ORManager"
            TypeName="Touchmax.OpVehicle" KeyMember="SequenceId" FilterExpression="1=0" />
        <wilson:DataSource ID="dsInvoice" runat="server" ObjectSpace="Touchmax.Manager.ORManager"
            TypeName="Touchmax.OpInvoice" KeyMember="SequenceId" FilterExpression="1=0" />

             <wilson:DataSource ID="dsInvoiceDet" runat="server" ObjectSpace="Touchmax.Manager.ORManager"
                TypeName="Touchmax.InvoiceDet" KeyMember="SequenceId" FilterExpression="1=0" />
        <dxwgv:ASPxGridView ID="grid_Order" ClientInstanceName="grid_Order" runat="server"
            DataSourceID="dsJobOrder" Width="850" KeyFieldName="Oid" AutoGenerateColumns="False"
            OnInit="grid_Order_Init" OnInitNewRow="grid_Order_InitNewRow" OnCustomCallback="grid_Order_CustomCallback"
            OnCustomDataCallback="grid_Order_CustomDataCallback" OnHtmlEditFormCreated="grid_Order_HtmlEditFormCreated">
            <SettingsPager Mode="ShowAllRecords">
            </SettingsPager>
            <SettingsEditing Mode="EditForm" />
            <SettingsCustomizationWindow Enabled="True" />
            <Settings ShowColumnHeaders="false" />
            <Templates>
                <EditForm>
               <fieldset>
                        <legend>Order Details</legend>
                    <table border="0" width="900">
                        <tr>
                            <td Width="100">
                                Customer
                            </td>
                            <td colspan="3" width="270">
                                <table cellspacing=0 cellpadding=0>
                                    <tr>
                                      
                                        <td>
<dxe:ASPxDropDownEdit ID="de_Cust" runat="server" ClientInstanceName="de_Cust" Width="60"
    AllowUserInput="False" value='<%# Bind("CustId")%>'>
    <DropDownWindowTemplate>
        <dxwgv:ASPxGridView ID="gridPopCont" runat="server" AutoGenerateColumns="False" ClientInstanceName="gridPopCont"
            Width="260px" DataSourceID="dsCust" KeyFieldName="CustId" OnCustomJSProperties="gridPopCont_CustomJSProperties">
            <Columns>
                <dxwgv:GridViewDataTextColumn FieldName="CustId" VisibleIndex="0">
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataTextColumn FieldName="Name" VisibleIndex="1">
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataTextColumn FieldName="Address" VisibleIndex="2">
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataTextColumn FieldName="Contact1" VisibleIndex="3">
                </dxwgv:GridViewDataTextColumn>
            </Columns>
            <ClientSideEvents RowClick="RowClickHandler" />
        </dxwgv:ASPxGridView>
    </DropDownWindowTemplate>
</dxe:ASPxDropDownEdit>
                                        <div style="display:none">
                                        <div id="lati"><%# Eval("Latitude") %></div>
                                        <div id="longi"><%# Eval("Longitude") %></div>
                                        </div>
                                        </td><td>
                                        <dxe:ASPxTextBox ID="txt_CustName" ClientInstanceName="txt_CustName" ReadOnly="true"  TabIndex="0"
                                                BackColor="Control" Width="150"   runat="server" Text='<%# Bind("CustName") %>'>
                                            </dxe:ASPxTextBox>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td Width="140">
                                Order No
                            </td>
                            <td width="160">
                                <dxe:ASPxTextBox ID="txt_OrderNo" ClientInstanceName="txt_OrderNo" Width="140" ReadOnly="true" Text='<%# Eval("JobNo") %>' TabIndex="7"
                                    BackColor="Control" runat="server" >
                                </dxe:ASPxTextBox>
                            </td>
                            <td rowspan="6">
                            <div style="padding-left:0px;border:solid 2px gray;width:240px;height:160px;">
                            <iframe id="mapframe" frameborder=0 border=0 width=240 height=160 src="/framework/map.html"></iframe>
                            </div>
                           
                            </td>
                        </tr>
                        <tr>
                            <td rowspan="2" valign="top">Address
                            </td>
                            <td rowspan="2" colspan="3">
                                <dxe:ASPxMemo ID="txtAddress" ClientInstanceName="txtAddress" ReadOnly="true" BackColor="Control" Width="220" Rows="3" runat="server" Text=''  TabIndex="1">
                                </dxe:ASPxMemo>
                            </td>
                            <td>
                                Service Date
                            </td>
                            <td>
                                <dxe:ASPxDateEdit ID="date_JobDate" runat="server" Width="140" Date="09/09/2010" value='<%# Eval("JobDate") %>' TabIndex="8"
                                    EditFormat="Custom" EditFormatString="dd/MM/yyyy" DisplayFormatString="dd/MM/yyyy">
                                </dxe:ASPxDateEdit>
                            </td>
                            </tr>
                            <tr>
                            <td>
                                Marketing Source
                            </td>
                            <td>
                                <dxe:ASPxComboBox ID="cmb_JobSource" Width="140" runat="server" Text='<%# Bind("JobSource") %>' DataSourceID="dsPickSource" ValueField="Code" TextField="Code"  TabIndex="9">
                                </dxe:ASPxComboBox>
                               
                            </tr>
                            <tr>
                            <td>Job Contact
                            </td>
                            <td colspan=3>
                                <dxe:ASPxTextBox ID="txt_CustContact" ClientInstanceName="txt_CustContact" Width="220" Text='<%# Eval("CustContact") %>' TabIndex="3"
                                   runat="server" >
                                </dxe:ASPxTextBox></td>
                         <td>
                                Service Type
                            </td>
                            <td>
                                <dxe:ASPxComboBox ID="cmb_JobType" Width="140" runat="server"  Text='<%# Bind("JobType") %>' DataSourceID="dsPickServiceType" ValueField="Code" TextField="Code"  TabIndex="11">
                                </dxe:ASPxComboBox>
                            </td>
                            
                            </tr>
                            <tr>
                            <td rowspan="2" valign="top">
                                Remark
                            </td>
                            <td colspan="3" rowspan="2">
                                <dxe:ASPxMemo ID="txt_Rmk" Width="220" Rows="3" runat="server" Text='<%# Eval("Remark") %>' TabIndex="4">
                                </dxe:ASPxMemo>
                            </td>
                            <td>
                                Technician 
                            </td>
                            <td>
                                <dxe:ASPxComboBox ID="cmb_Tehnician" Width="140" runat="server" Text='<%# Bind("Tehnician") %>' DataSourceID="dsPickTech" ValueField="Code" TextField="Code"  TabIndex="12">
                                </dxe:ASPxComboBox>
                            </td>
                            
                        </tr>
                        
                        <tr>                        
                            <td>
                                Order Status
                            </td>
                            <td>
                                <dxe:ASPxComboBox ID="cmb_JobStatus" BackColor="lightgreen" Width="140" runat="server" Text='<%# Bind("JobStatus") %>' DataSourceID="dsPickOrderStatus" ValueField="Code" TextField="Code"  TabIndex="13">
                                </dxe:ASPxComboBox>
                            </td></tr>
                             </table>
                    
                    </fieldset>
                </EditForm>
            </Templates>
        </dxwgv:ASPxGridView>
                
                    <dxtc:ASPxPageControl runat="server" ID="pageControl" width="950">
                        <tabpages>
                                
                                 <dxtc:TabPage Text="Vehicle Information" Name="Sch" Visible="true">
                                    <ContentCollection>
                                        <dxw:ContentControl runat="server">
                                            <dxwgv:ASPxGridView ID="grd_Cont" ClientInstanceName="grd_Cont" runat="server"
                                                DataSourceID="dsVehicle" KeyFieldName="SequenceId" Width="100%"
                                                            OnBeforePerformDataSelect="grd_Cont_BeforePerformDataSelect" OnHtmlRowPrepared="grd_Cont_HtmlRowPrepared">
                                                            <SettingsBehavior ConfirmDelete="True" />
                                                            <SettingsPager Mode="ShowAllRecords">
                                                            </SettingsPager>
                                                <Columns>
                                        
                                                                
                                                                <dxwgv:GridViewDataColumn FieldName="VehicleType" Caption="Vehicle" VisibleIndex="1" Width="150">
                                                                <DataItemTemplate>
                                                                <a onclick='PopupVehicle(<%# Eval("SequenceId") %>);'><%# Eval("Year") %> <%# Eval("VehicleType") %> <%# Eval("VehicleModel") %></a>
                                                                </DataItemTemplate>
                                                                </dxwgv:GridViewDataColumn>
                                                                <dxwgv:GridViewDataColumn FieldName="Color1" Caption="Color" VisibleIndex="1" Width="70">
                                                                </dxwgv:GridViewDataColumn>
                                                                <dxwgv:GridViewDataColumn FieldName="ColorCode1" Caption="Paint Code" VisibleIndex="1" Width="70">
                                                                </dxwgv:GridViewDataColumn>
                                                                <dxwgv:GridViewDataColumn FieldName="VehicleNo" Caption="Stock#" VisibleIndex="1" Width="70">
                                                                </dxwgv:GridViewDataColumn>
                                                                <dxwgv:GridViewDataColumn FieldName="Vin" Caption="Vin#" VisibleIndex="1" Width="70">
                                                                </dxwgv:GridViewDataColumn>
                                                                <dxwgv:GridViewDataSpinEditColumn FieldName="Amount" Caption="Amount" VisibleIndex="1" width="60">
                                                                    <propertiesspinedit Increment="0">
                                                                    <spinbuttons showincrementbuttons="False"></spinbuttons>
                                                                    </propertiesspinedit>
                                                                </dxwgv:GridViewDataSpinEditColumn>

                                                                <dxwgv:GridViewDataColumn FieldName="Status" Caption="Status" VisibleIndex="1" Width="70">
                                                                <DataItemTemplate>
                                                                <dxe:ASPxLabel ID="lab_Status" runat="server" Text='<%# Eval("Status") %>'></dxe:ASPxLabel>
                                                                </DataItemTemplate>
                                                                </dxwgv:GridViewDataColumn>
                                              
                                                </Columns>
                                            </dxwgv:ASPxGridView> 
                                        </dxw:ContentControl>
                                    </ContentCollection>
                                </dxtc:TabPage>
                                 <dxtc:TabPage Text="Invoices" Name="Invoices" Visible="true">
                                    <ContentCollection>
                                        <dxw:ContentControl runat="server">
                                                        <dxwgv:ASPxGridView ID="ASPxGridView2" ClientInstanceName="Grid_Invoice_Import"
                                                            runat="server" KeyFieldName="SequenceId" DataSourceID="dsInvoice" Width="800"
                                                            OnBeforePerformDataSelect="Grid_Invoice_Import_DataSelect">
                                                            <Columns>
                                                                <dxwgv:GridViewDataTextColumn Caption="#" VisibleIndex="0" Width="10%">
                                                                    <DataItemTemplate>
                                                                        <a onclick='ShowBill(Grid_Invoice_Import,<%# Eval("DocNo") %>);'>Edit</a>&nbsp;
                                                                        <a href='/Reports/printview.aspx?doc=50&no=<%# Eval("DocNo")%>'
                                                                            target="_blank">Print</a>
                                                                    </DataItemTemplate>
                                                                </dxwgv:GridViewDataTextColumn>
                                                                <dxwgv:GridViewDataTextColumn Caption="Invoice No" Width="120" FieldName="DocNo" VisibleIndex="1">
                                                                </dxwgv:GridViewDataTextColumn>
                                                                <dxwgv:GridViewDataTextColumn Caption="Date" Width="120" FieldName="DocDate" VisibleIndex="2">
                                <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                                </PropertiesTextEdit>
                                                                </dxwgv:GridViewDataTextColumn>
                                                                <dxwgv:GridViewDataTextColumn Caption="Customer" FieldName="CustName" VisibleIndex="3">
                                                                </dxwgv:GridViewDataTextColumn>
                                                                <dxwgv:GridViewDataTextColumn Caption="Amount" FieldName="TotAmt" VisibleIndex="4">
                                                                </dxwgv:GridViewDataTextColumn>
                                                            </Columns>
                                                        </dxwgv:ASPxGridView>
                                        </dxw:ContentControl>
                                    </ContentCollection>
                                </dxtc:TabPage>
                           
                               </tabpages>
                        <clientsideevents activetabchanged="function(s, e) { 
                                var tit=s.GetActiveTab().GetText();
                                if(tit.substring(0,5)=='Photo')
                                    grid_Order.PerformCallback('Photo');
                                    }" />
                    </dxtc:ASPxPageControl>
                    <table width="920">
                    <tr>
                <td
                                    <dxe:ASPxButton ID="ASPxButton10" Width="110"  runat="server" Text="Add Vehicle" Enabled='<%# SafeValue.SafeString(Eval("JobNo"),"0")!="0" %>' AutoPostBack="false" UseSubmitBehavior="false" >
                                    <ClientSideEvents Click="function(s,e) {
                                    PopupVehicle(0);
                                    }" />
                                    </dxe:ASPxButton></td>
                <td>
                                    <dxe:ASPxButton ID="ASPxButton2" Width="110"  runat="server" Text="Estimation" Enabled='<%# SafeValue.SafeString(Eval("JobNo"),"0")!="0" %>' AutoPostBack="false" UseSubmitBehavior="false" >
                                    <ClientSideEvents Click="function(s,e) {
                                    PrintEstimate();
                                    }" />
                                    </dxe:ASPxButton></td>
         
               
                <td>
                <dxe:ASPxButton ID="ASPxButton4" Width="90" runat="server" Text="Refresh" AutoPostBack="false"
                                    UseSubmitBehavior="false">
                                    <ClientSideEvents Click='function(s,e) {
                                                        grd_Cont.Refresh();
                                                        }' />
                                </dxe:ASPxButton>
                </td>
                <td>
                <dxe:ASPxButton ID="ASPxButton13" Width="90" runat="server" Text="Issue Invoice" AutoPostBack="false"
                                    UseSubmitBehavior="false">
                                    <ClientSideEvents Click='function(s,e) {
                                                        grid_Order.GetValuesOnCustomCallback("IssueInvoice",OnCallback);
                                                        }' />
                                </dxe:ASPxButton>
                </td>
                <td>&nbsp;&nbsp;&nbsp;
                </td>
                <td align="right">
                <dxe:ASPxButton ID="btn_Save1" Width="90" runat="server" Text="Save Order" AutoPostBack="false"
                                    UseSubmitBehavior="false">
                                    <ClientSideEvents Click="function(s,e) {
                                                            setTimeout('LoadMap();',6000);
                                                            grid_Order.PerformCallback('Save');
                                                        }" />
                                </dxe:ASPxButton>
                </td></tr></table>

        <dxpc:ASPxPopupControl id="popubCtr" runat="server" CloseAction="CloseButton" Modal="True"
            PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" ClientInstanceName="popubCtr"
            HeaderText="Customer" AllowDragging="True" EnableAnimation="False" height="360"
            AllowResize="True" width="750" EnableViewState="False">
        </dxpc:ASPxPopupControl>
        <dxpc:ASPxPopupControl id="popubCtr1" runat="server" CloseAction="CloseButton" Modal="True"
            PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" ClientInstanceName="popubCtr1"
            HeaderText="Customer" AllowDragging="True" EnableAnimation="False" height="450"
            AllowResize="True" width="800" EnableViewState="False">
            <clientsideevents closeup="function(s, e) {
            
}" />
        </dxpc:ASPxPopupControl>
    </div>
    </form>
</body>
<style>
.dxbButton {   	font-size: 11px; height:18px; }
.dxeEditArea { font-size:11px; height:17px;}
</style>
</html>
